version 13.3R2.4;
dynamic-profiles {
    IP-DHCP-PROFILE-1 {
        interfaces {
            "$junos-interface-ifd-name" {
                unit "$junos-underlying-interface-unit";
            }
        }
    }
    VLAN-PROFILE-1 {
        interfaces {
            "$junos-interface-ifd-name" {
                unit "$junos-interface-unit" {
                    vlan-id "$junos-vlan-id";
                    family inet {
                        unnumbered-address lo0.0 preferred-source-address 192.168.0.1;
                    }
                    family inet6 {
                        address $junos-ipv6-address;
                    }
                }
            }
        }
        protocols {
            router-advertisement {
                interface "$junos-interface-name" {
                    max-advertisement-interval 20;
                    min-advertisement-interval 10;
                    default-lifetime 900;
                    prefix $junos-ipv6-ndra-prefix;
                }
            }
        }
    }
}
system {
    host-name mx104;
    root-authentication {
        encrypted-password "$1$pP2rb3nt$IlSQFrxYsDbyp10XgzEuW/"; ## SECRET-DATA
    }
    dynamic-profile-options {
        versioning;
    }
    login {
        user warrior {
            uid 2002;
            class super-user;
            authentication {
                encrypted-password "$1$i8a5NCp3$O6avDk29rTGcVohqVxGNj0"; ## SECRET-DATA
            }
        }
    }
    services {
        telnet;
        dhcp-local-server {
            pool-match-order {
                ip-address-first;
            }
            authentication {
                password 123;
                username-include {
                    mac-address;
                }
            }
            group 1 {
                dynamic-profile IP-DHCP-PROFILE-1;
                interface xe-2/0/0.0;
            }
        }
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
            interactive-commands none;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
chassis {
    fpc 1 {
        pic 0 {
            inline-services {
                bandwidth 1g;
            }
        }
    }
    network-services enhanced-ip;
}
access-profile Access-Profile-1;
interfaces {
    xe-2/0/0 {
        description "-- to EX4200";
        vlan-tagging;
        auto-configure {
            vlan-ranges {
                dynamic-profile VLAN-PROFILE-1 {
                    accept any;
                    ranges {
                        any;
                    }
                }
            }
            remove-when-no-subscribers;
        }
        mtu 9192;
        gigether-options {
            no-flow-control;
        }
        unit 10 {
            description "-- management interface";
            vlan-id 10;
            family inet {
                address 10.10.10.1/24;
            }
        }
    }
    lo0 {
        description "-- loopback";
        unit 0 {
            family inet {
                address 1.1.1.20/32 {
                    primary;
                    preferred;
                }
                address 192.168.0.1/32;
            }
        }
    }
}
access {
    profile Access-Profile-1 {
        accounting-order radius;
        authentication-order radius;
        radius {
            authentication-server 10.10.10.64;
            accounting-server 10.10.10.64;
            options {
                nas-port-id-delimiter :;
                calling-station-id-delimiter :;
                calling-station-id-format {
                    nas-identifier;
                    interface-description;
                }
                accounting-session-id-format decimal;
                revert-interval 60;
                client-authentication-algorithm round-robin;
                client-accounting-algorithm direct;
                coa-dynamic-variable-validation;
            }
        }
        radius-server {
            10.10.10.64 {
                secret "$9$45Zi.Qz6AtOQFCu0Byr"; ## SECRET-DATA
                timeout 2;
                retry 3;
                max-outstanding-requests 200;
                source-address 10.10.10.1;
            }
        }
        accounting {
            order radius;
            immediate-update;
            coa-immediate-update;
            update-interval 10;
            statistics volume-time;
            send-acct-status-on-config-change;
        }
    }
    address-assignment {
        neighbor-discovery-router-advertisement NDRA;
        pool ipv4-pool {
            family inet {
                network 192.168.0.0/24;
                range R1 {
                    low 192.168.0.2;
                    high 192.168.0.254;
                }
                dhcp-attributes {
                    maximum-lease-time 3600;
                    name-server {
                        8.8.4.4;
                    }
                    router {
                        192.168.0.1;
                    }
                }
            }
        }
        pool NDRA {
            family inet6 {
                prefix 2001::/48;
                range NDRA-RANGE prefix-length 64;
            }
        }
    }
    address-protection;
    report-interface-descriptions;
    radius-options {
        request-rate 500;
    }
}
